Bug 411118 - bad bevel for progress bar on windows classic. Match from
authorDom Lachowicz <domlachowicz@gmail.com>
Fri, 23 Feb 2007 16:30:05 +0000 (16:30 +0000)
committerDom Lachowicz <doml@src.gnome.org>
Fri, 23 Feb 2007 16:30:05 +0000 (16:30 +0000)
2007-02-23  Dom Lachowicz  <domlachowicz@gmail.com>

        * modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
        progress bar on windows classic. Match from Mathias Hasselmann.

svn path=/trunk/; revision=17344

ChangeLog
modules/engines/ms-windows/msw_style.c

index f87e8a8552aa8e6658c46d3276a054ec10ddea36..3165f7d620ec877b90ac5ca394ce9fb1baed23f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-23  Dom Lachowicz  <domlachowicz@gmail.com>
+
+       * modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
+       progress bar on windows classic. Match from Mathias Hasselmann.
+       
 2007-02-19  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkinput.c
index a1d2bf6b7e7313ab23f9019f022023110195a7f8..399d925ea37e3cf77e70d79759473786223985b2 100755 (executable)
@@ -2052,12 +2052,14 @@ draw_box (GtkStyle * style,
                    GtkProgressBar *progress_bar = GTK_PROGRESS_BAR (widget);
                    XpThemeElement xp_progress_bar =
                        map_gtk_progress_bar_to_xp (progress_bar, FALSE);
-                   if (xp_theme_draw
-                       (window, xp_progress_bar, style, x, y, width, height,
-                        state_type, area))
+
+                   if (xp_theme_draw (window, xp_progress_bar, style, x, y,
+                                                          width, height, state_type, area))
                        {
                            return;
                        }
+
+                       shadow_type = GTK_SHADOW_NONE;
                }
        }
     else if (detail && strcmp (detail, "menuitem") == 0)